﻿@model HanGu.Entity.Dictionary
@{
    Layout = null;
    TempData["ContorlID"] = "Remark";
        //TempData["Remark"] = Model.Remark;
}
<div class="pageContent">
    <form method="post" action="admin/@ViewData["CurrentController"]/create" enctype="MULTIPART/FORM-DATA" class="pageForm required-validate"
    onsubmit="return iframeCallback(this, navTabAjaxDone);">
    @Html.ValidationSummary(true)
    @Html.Hidden("type", ViewData["type"])
    <div class="pageFormContent" layouth="78">
        <p>
            <label>
                标题：</label>
            @Html.TextBoxFor(model => model.Title, new { @class = "required" })
            @Html.ValidationMessageFor(model => model.Title)
        </p>
        <p>
            <label>
                组名:</label>
            @if (string.IsNullOrEmpty(Model.GroupName))
            {
                @Html.TextBoxFor(model => model.GroupName, new { @class = "required" })
            }
            else
            { 
                @Html.TextBoxFor(model => model.GroupName, new { @class = "required", @Readonly = "Readonly" })
            }
            @Html.ValidationMessageFor(model => model.GroupName)
        </p>
        <p>
            <label>
                关键字:</label>
            @if (string.IsNullOrEmpty(Model.key))
            {
                @Html.TextBoxFor(model => model.key, new { @class = "required" })
            }
            else
            { 
                @Html.TextBoxFor(model => model.key, new { @class = "required", @Readonly = "Readonly" })
            }
            @Html.ValidationMessageFor(model => model.key)
        </p>
        <p>
            <label>
                值：</label>
            @Html.TextBoxFor(model => model.Value, new { @class = "required", })
            @Html.ValidationMessageFor(model => model.Value)
        </p>
        <p>
            <label>
                描述：</label>
            @Html.TextAreaFor(model => model.Remark, new { style = "width:80%;height:100px" })
            @Html.ValidationMessageFor(model => model.Remark)
        </p>
    </div>
    <div class="formBar">
        <ul>
            <li>
                <div class="buttonActive">
                    <div class="buttonContent">
                        <button type="submit">
                            提交</button></div>
                </div>
            </li>
            <li>
                <div class="button">
                    <div class="buttonContent">
                        <button type="button" class="close">
                            取消</button></div>
                </div>
            </li>
        </ul>
    </div>
    </form>
</div>
